package com.force.common.mybatisplus.plusbase;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public  abstract class IBasePlusImpl<M extends BaseMapper<T>, T> extends ServiceImpl<M,T> implements IBasePlus<T>{
    @Override
    public List<T> list(T t) {
        QueryWrapper<T> tQueryWrapper=new QueryWrapper<>();
        tQueryWrapper.setEntity(t);

        return list(tQueryWrapper);
    }
}
